﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.ObjectModel;
using MuaChungDAO;
using System.Data;
using System.Data.SqlClient;

namespace MuaChungDAO
{
    public class NhomMuaHandler
    {
        public static DataTable napTongQuat(string querySQL)
        {
            SqlConnection conn = NguoiKetNoi.ketNoi("NhomMuaConnectionString");

            SqlCommand cm = new SqlCommand();
            cm.CommandText = querySQL;
            cm.Connection = conn;

            SqlDataAdapter da = new SqlDataAdapter();
            da.SelectCommand = cm;
            
            DataTable dt = new DataTable();
            da.Fill(dt);
            return dt;
        }

    }
}
